<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js/vue.js"></script>
    <div class="box">
        <!-- 按键修饰符 可以是keycode码 也可以是别名 -->
        <!-- <input type="text" @keyup.13="yangyang"> -->
        <input type="text" @keyup.space="yangyang">
        <!-- <input type="text" @keyup.space="yangyang"> -->
        <!-- 
            按键修饰符：
            .enter
            .tab
            .space
            .up
            .down
            .left
            .right
            .ctrl
            .alt
            .delete
         -->
        <!-- <div @keyup="yangyang1">test div上是否能绑定</div> -->
    </div>
    <script>
        let vm=new Vue({
            el:'.box',
            methods: {
                yangyang(){
                    console.log('ysn专利费')
                },
                yangyang1(){
                    console.log('ysn专利费')
                }
            }
        })
    </script>
</body>
</html>